package com.niit.cms.service.impl;

import com.niit.cms.entity.Slideshow;
import com.niit.cms.dao.SlideshowDao;
import com.niit.cms.service.SlideshowService;
import org.springframework.stereotype.Service;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.PageRequest;

import javax.annotation.Resource;
import java.util.List;

/**
 * (Slideshow)表服务实现类
 *
 * @author makejava
 * @since 2022-06-22 21:42:58
 */
@Service("slideshowService")
public class SlideshowServiceImpl implements SlideshowService {
    @Resource
    private SlideshowDao slideshowDao;

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    @Override
    public Slideshow queryById(Integer id) {
        return this.slideshowDao.queryById(id);
    }

    /**
     * 查询全部数据
     *
     * @param
     * @return 实例对象
     */
    @Override
    public List<Slideshow> queryList() {
        return slideshowDao.queryList();
    }


}
